package edu.ucsd.cs110.mycity.model.data;

import android.location.Location;

import com.google.android.maps.GeoPoint;

public class TRKPTCoordinate {

	private Double latitude;
	private Double longtitude;
	private String time;
	
	public TRKPTCoordinate (Double latitude, Double longtitude, String time) {
		this.setLatitude(latitude);
		this.setLongtitude(longtitude);
		this.setTime(time);
	}
	
	public void setLatitude(Double latitude) {
		this.latitude = latitude;
	}
	public Double getLatitude() {
		return latitude;
	}
	public void setLongtitude(Double longtitude) {
		this.longtitude = longtitude;
	}
	public Double getLongtitude() {
		return longtitude;
	}
	public void setTime(String time) {
		this.time = time;
	}
	public String getTime() {
		return time;
	}
	
	public GeoPoint getGeoPoint() {
		return new GeoPoint((int) (latitude * 1E6), (int) (longtitude * 1E6));
	}
	
	public Location getLocation() {
		Location l = new Location("");
		l.setLatitude(latitude);
		l.setLongitude(longtitude);
		return l;
	}
	
	@Override
	public String toString() {
		return "Latitude: " + latitude + " Longtitude: " + longtitude + " Time: " + time;
	}
	
}
